import React from 'react';
import ReactDOM from 'react-dom';
import 'antd/dist/antd.css';
import VisibleApp from '@/views/VisibleApp';
import '@/assets/style/style.scss';
import reportWebVitals from './reportWebVitals';
import { Switch, Route, BrowserRouter } from 'react-router-dom'
import zhCN from 'antd/es/locale/zh_CN';
import { ConfigProvider } from 'antd';
import 'moment/locale/zh-cn';
import { Provider } from 'react-redux'

import { PersistGate } from 'redux-persist/integration/react'
import store from '@/redux/index'
import { persistor } from '@/redux/index'

import App from '@/views/App';
ReactDOM.render(

    <ConfigProvider locale={zhCN}>
        <Provider store={store}>
            <PersistGate loading={null} persistor={persistor}>
                <App />
            </PersistGate>
        </Provider >
    </ConfigProvider>,

    document.getElementById('root'),
    function () {
        // console.log(store.getState());
    }
);

reportWebVitals();
